<?php
namespace app\mobile\controller;

class WxAction
{
    public function notifyurl()
    {
        require EXTEND_PATH . "wxpay/mobile/lib/WxPay.Data.php";
        require EXTEND_PATH . "wxpay/mobile/lib/WxPay.Api.php";
        require EXTEND_PATH . "wxpay/lib/WxPay.Notify.php";
        require EXTEND_PATH . 'wxpay/lib/log.php';

        // Loader::import('wxpay.lib.WxPay', EXTEND_PATH, '.Data.php');
        // Loader::import('wxpay.lib.WxPay', EXTEND_PATH, '.Api.php');
        // Loader::import('wxpay.lib.WxPay', EXTEND_PATH, '.Notify.php');
        // Loader::import('wxpay.lib.log', EXTEND_PATH, '.php');

        // 初始化日志
        $logHandler = new \CLogFileHandler("./logs/" . date('Y-m-d') . '.log');
        $log = \Log::Init($logHandler, 15);
        $Notify = new \WxPayNotify();
        $Notify->Handle(true);
        // $log->DEBUG("_REQUEST=======");
    }


}